package cn.lhn.ridersclub.mapper;

import cn.lhn.ridersclub.entity.Account;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AccountMapper extends BaseMapper<Account> {

    @Select("select nickname from account where id = ${accountId};")
    String getNicknameById(@Param("accountId") Long accountId);
}
